import { test } from '@/api'
import { rest } from 'msw'
import R from './_util'

export const getTest = rest.get(R.base(test.getTest), async (req, res, ctx) => {

  return res(
    ctx.cookie('foo', 'bar'),
    ctx.json({
      foo: 'bar'
    }))
})